package com.logic.meeting.core.delegates;

import android.os.Bundle;

public abstract class AtmosDelegate extends PermissionCheckerDelegate {
    public <T extends AtmosDelegate> T getParentDelegate() {
        return (T) getParentFragment();
    }

    @Override
    public void onFragmentResult(int requestCode, int resultCode, Bundle data) {
        super.onFragmentResult(requestCode, resultCode, data);
//        if (resultCode == FusionCode.SELECT_CITY_RESULT_CODE) {
//            EventBus.getDefault().post(new CityEvent(data));
//        } else if (resultCode == FusionCode.LOGIN_RESULT_CODE) {
//            EventBus.getDefault().post(new LoginEvent(data));
//        }
    }
    @Override
    public void onDestroy() {
        super.onDestroy();
        hideSoftKeyboard();
    }
}
